package cn.itcast.goods.mapper;

import cn.itcast.model.TbSpu;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

//@Component("SpuMapper")
public interface SpuMapper {

    /**
     * 根据ID查询SPU信息
     * @param spuid
     * @return
     */
    public TbSpu findById(String spuid);

    /**
     * 条件查询
     * @param searchMap
     * @return
     */
    public List<TbSpu> search(Map<String, String> searchMap);

}
